<h3>Cart</h3>


<div class="cart-item" *ngFor="let product of items">
  <span>{{product.name}}</span>
  <span>{{product.price | currency}}</span>
</div>

<p>
  <a routerLink='/shipping'>Shipping Prices</a>
</p>

<form [formGroup]='checkoutForm' (ngSubmit)='onSubmit(checkoutForm.value)'>
  <div>
    <label for="name">Name</label>
    <input type="text" id='name' formControlName='name'>
  </div>
  <div>
    <label for="address">Address</label>
    <input type="text" id='address' formControlName='address'>
  </div>
  <button class='button' type='submit'>Purchase</button>
</form>